import request from "@/api/request";

const url = "/wiki/web"

export function categories(query) {
    return request({
        url: `${url}/wiki/category/all`,
        method: 'get',
        params: query
    })
}

export function update(category) {
    return request.put(`${url}/wiki/category`,category)
}

export function save(category) {
    return request.post(`${url}/wiki/category`,category)
}

export function remove(categoryId){
    return request.delete(`${url}/wiki/category/${categoryId}`)
}
